package com.chance.cc.crawler.prod.command.trigger.domain.vm.xcar.adhoc;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.vm.xcar.adhoc.XcarSimpleRedisToRunCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.xcar.realtime.XcarSeriesDiscountsRealtimeCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @ClassName xcar
 * @Description TODO
 * @Author songding
 * @Date 2021/9/24 13:50
 * @Version 1.0
 **/
public class XcarSimpleScheduleTrigger extends CommonCrawlerSchedulerTrigger {
    public static void main(String[] args) {
        //爱卡车系页文章临时采集
        publishXcarSeriesArticleRealtimeScheduleTriggerInfo();
    }
    public static void publishXcarSeriesArticleRealtimeScheduleTriggerInfo(){
       // CrawlerJob crawlerJob = XcarSeriesArticleSimpleCrawlerScheduleJob.xcarCwalerJob();
        CrawlerJob crawlerJob = XcarSimpleRedisToRunCrawlerScheduleJob.xcarScheduleCarHomeArticle();
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                XcarSeriesDiscountsRealtimeCrawlerScheduleJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "爱卡汽车页车系页文章临时采集");
        System.out.println("添加采集调度： "+page.getRawText());
    }
}
